from src.backend.db.database import SQLite
from src.backend.db.keyword import KeyWord
from src.backend.mydecorator import beans

class BeanFactory:

    @staticmethod
    def getCursor()->SQLite:
        return beans['db']

    @staticmethod
    def getKeyWord()->KeyWord:
        path=BeanFactory.getCursor().word_path
        return KeyWord(path)